package top.riske.gen3d.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.riske.gen3d.entity.Account;


import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccountDto {

    private Long id;

    private String username;

    private String nickname;

    private String gender;

    private String phone;

    private String email;

    private String avatar;

    private Integer role;

    private Integer status;

    private LocalDateTime createdTime;


    public Account toEntity(){
        return new Account(id,username, nickname,gender, phone, email, avatar, role, status, createdTime);
    }

}
